package com.rayjoy.games.flatcard.controller;

import com.rayjoy.games.flatcard.service.TestManager;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * Created by 赵占涛 on 14-11-1.
 */
@Controller
@RequestMapping("/")
public class TestController {

    @Resource
    TestManager testManager;

    @RequestMapping(method = RequestMethod.GET)
    public String printWelcome(ModelMap model) {
        model.addAttribute("message",testManager.getSomething());
        return "hello";
    }
}
